<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar"><span class="color_red">*</span>项目基本情况</div>
	<table class="t_css" width="100%" border="0" cellpadding="0"
	    cellspacing="1">
	<col style="width: 20%"/>
	<col style="width: 15%"/>
	<col style="width: 20%"/>
	<col style="width: 18%"/>
	<col style="width: 27%"/>
	    <tr>
	        <td align="right">项目名称：</td>
	        <td colspan="4">
	        	<input type='text' name='proposal/zh_title' id='zh_title' style="width: 80%" class="input_css required maxlength:100" maxlength="100"
					   value='<x:out select="$xmlData/data/proposal/zh_title"/>' label="项目基本情况-->项目名称">
	        </td>
	    </tr>
	    <tr>
	        <td align="right">疾病领域临床专科：</td>
	        <td colspan="4">
	        	<input type='text' name='proposal/zh_jbly' id='zh_jbly' style="width: 80%" class="input_css required maxlength:50" maxlength="50"
					   value='<x:out select="$xmlData/data/proposal/zh_jbly"/>' label="项目基本情况-->疾病领域临床专科">
	        </td>
	    </tr>
	     <tr>
	        <td align="right">依托单位：</td>
	        <td colspan="4">
	       		 <span name="organizations/organization/org_name"><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_name"/></span>
	        </td>
	    </tr>
	     <tr>
             <td align="right">归口管理部门：</td>
             <td colspan="2">
                 <c:set var="recomend_org"> {'id':'<x:out select="$xmlData/data/proposal/recomend_org_value" />', 'name':'<x:out select="$xmlData/data/proposal/recomend_org_name" />' } </c:set>
                 <cpt:tree id="recomend_org" key="recommended_org"  cacheable="false" className="hn_iuput_kuang required selectWidth3" readonly="true" value="${recomend_org}" label="项目基本情况-->归口管理部门"
                           showPattern="all" shieldPattern="0" onClick="initTreeValue2">
                 </cpt:tree>
                 <input type="hidden" id="recomend_org_value" name="proposal/recomend_org_value"  value="<x:out select="$xmlData/data/proposal/recomend_org_value" />" >
                 <input type="hidden" name="proposal/recomend_org_name" value="<x:out select="$xmlData/data/proposal/recomend_org_name" />">
             </td>
             <td  align="right" >申报日期：</td>
             <td>
                 <c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
                 <cpt:date id="apply_date_curr" name="proposal/submit_date" value="${submit_date}" className="required date" label="项目基本情况-->申报日期" ></cpt:date>
             </td>
        </tr>
		<tr>
			<td rowspan="2" align="right">项目联系人：</td>
			<td align="right">姓名：</td>
			<td>
				<input  type="text" label="项目基本情况-->项目联系人-->姓名" name="zh_person/fzr_name" class="input_css required" maxlength="50" value="<x:out select="$xmlData/data/zh_person/fzr_name" />">
			</td>
			<td align="right">电子邮箱：</td>
			<td>
				<input  type="text" label="项目基本情况-->项目联系人-->电子邮箱" name="zh_person/fzr_email" class="input_css required email" maxlength="50" value="<x:out select="$xmlData/data/zh_person/fzr_email" />">
			</td>
		</tr>
		<tr>
			<td align="right">联系电话：</td>
			<td>
				<input type="text" label="项目基本情况-->项目联系人-->联系电话" name="zh_person/fzr_tel" class="input_css required" maxlength="30" value="<x:out select="$xmlData/data/zh_person/fzr_tel" />">
			</td>
			<td align="right">传真：</td>
			<td>
				<input type="text" label="项目基本情况-->项目联系人-->传真" name="zh_person/fzr_fax" class="input_css required" maxlength="30" value="<x:out select="$xmlData/data/zh_person/fzr_fax" />">
			</td>
		</tr>
		<tr >
			<td colspan="5" class="t_bar2">
				<span class="color_red">*</span>首席专家基本情况
			</td>
		</tr>
	    <tr>
			<td align="right">姓名：</td>
			<td colspan="2">
				<%--<input  type="text" label="首席专家基本情况-->姓名" name="proposal/sx_psn_cname" class="input_css required" maxlength="50" value="<x:out select="$xmlData/data/proposal/sx_psn_cname" />">--%>
					<span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
			</td>
			<td align="right">职务/职称：</td>
			<td>
				<input  type="text" label="首席专家基本情况-->职务/职称" name="proposal/sx_psn_post" class="input_css required" maxlength="50" value="<x:out select="$xmlData/data/proposal/sx_psn_post" />">
			</td>
		</tr>
		<tr>
			<td align="right">个人简介（限1000字）：</td>
			<td colspan="4">
				<textarea name="proposal/profile" style="width:98%;autofocus:autofocus" label="首席专家基本情况-->个人简介" class="input_textarea required  maxlength:1000"  rows=10 cols=60><x:out select="$xmlData/data/proposal/profile"/></textarea>
				<input type="hidden" name="proposal/profile_hidden" id="proposal/profile_hidden" value="<x:out select="$xmlData/data/proposal/profile_hidden" />"/>
			</td>
		</tr>
		<tr>
			<td align="right">研究方向（限1000字）：</td>
			<td colspan="4">
				<textarea name="proposal/research_direction" style="width:98%;autofocus:autofocus" label="首席专家基本情况-->研究方向" class="input_textarea required  maxlength:1000"  rows=10 cols=60><x:out select="$xmlData/data/proposal/research_direction"/></textarea>
				<input type="hidden" name="proposal/research_direction_hidden" id="proposal/research_direction_hidden" value="<x:out select="$xmlData/data/proposal/research_direction_hidden" />"/>
			</td>
		</tr>
		<tr>
			<td align="right">重大研究成果（限1000字）：</td>
			<td colspan="4">
				<textarea name="proposal/achievements" style="width:98%;autofocus:autofocus" label="首席专家基本情况-->重大研究成果" class="input_textarea required  maxlength:1000"  rows=10 cols=60><x:out select="$xmlData/data/proposal/achievements"/></textarea>
				<input type="hidden" name="proposal/achievements_hidden" id="proposal/achievements_hidden" value="<x:out select="$xmlData/data/proposal/achievements_hidden" />"/>
			</td>
		</tr>
	</table>
<script type="text/javascript">
function initTreeValueExt(treeId, treeNode) {
 	if ((treeNode && treeNode.isParent)) {
 		scmWarn("请选择具体的" + $("#" + treeId).attr("label"));
 		$("#" + treeId).val("");
 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val("");
 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId	+ "_value']").val("");
 		$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val("");
 		return false;
 	}
 	var str = treeNode.name;
 	var obj = treeNode.parentNode;
 	while (obj != null) {
 		str = obj.name + "-" + str;
 		obj = obj.parentNode;
 	}
 	
 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val(treeNode.id);
 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
 	$("#" + treeId).parents("td").find("[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);
 }
</script>	